package com.yuanfeng.biz.front.user.service;

import com.yuanfeng.biz.front.user.dao.UserDao;
import com.yuanfeng.biz.front.user.dao.UserDaoImpl;
import com.yuanfeng.entity.Users;

public class UserServiceImpl implements UserService {


	UserDao userDao = new UserDaoImpl();

	public Users login(String name) {
		return userDao.findByName(name);
	}

	public Users reg(Users user) {
		return userDao.save(user);
	}

}
